package model

type Authorization struct {
	Id        int    `json:"id" form:"id" gorm:"primaryKey;autoIncrement"`
	AdminId   int    `json:"admin_id" form:"admin_id" gorm:"column:admin_id;comment:管理员id"`
	ModelName string `json:"model_name" form:"model_name" gorm:"column:model_name;comment:模块名"`
	Status    int    `json:"status" form:"status" gorm:"column:status;comment:对模块的权限：0无；1只读；2可操作"`
}

func (Authorization) TableName() string {
	return "authorization"
}
